/* $Id: switcher.js,v 1.1 2006/06/15 06:53:25 xcart Exp $ */
function _demoVisibleBox(img) {
	var elm3 = document.getElementById("demo_box");

	if (!elm3 || !img)
		return false;
	if (elm3.style.display == "") {
		elm3.style.display = "none";
		img.src = img.src.replace(/db_close\.gif/, "db_open.gif");
		img.className = 'DemoNext';
	} else {
		elm3.style.display = "";
		img.src = img.src.replace(/db_open\.gif/, "db_close.gif");
		img.className = 'DemoNextPressed';
	}	
}

function demoSubmit(value) {
	document.demoswitchform.mode.value = value;
	document.demoswitchform.submit();
}
